
[#escape x as x?html]
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>客户列表</title>
[#include "../../include/main.ftl"]
[#include "../../include/flexigrid.ftl"]
</head>
<body>
<div class="ui-widget page">
[#include '../../top.ftl']

    <div class="content">
    [#include '../../leftNav.ftl']
        <div style="width:845px;height:600px;float: left;padding-left: 5px">
            <div class="ui-widget-content ui-corner-all" style="min-height: 600px;">
                <span class="ui-widget-content ui-corner-all" style="min-height: 600px;">客户名称
                <input name="textfield" type="text" id="textfield" size="10">
                委托书编号<span class="ui-widget-content ui-corner-all" style="min-height: 600px;">
                <input name="textfield2" type="text" id="textfield2" size="10">
                </span>
<input type="button" value="查询" >
|</span>
            <input type="button" value="新建合同" onClick="self.location='/Ins/contract/new'">

                <table class="Contractlist" style="display: none"></table>
                <script>

                    $(".Contractlist").flexigrid({
                        url : 'listPage',
                        dataType : 'json',
                        colModel : [
							{display : 'sn', name : 'sn', width : 50, sortable : true, align : 'left', hide:true},
                            {display : '委托书编号', name : 'contractNo', width : 100, sortable : true, align : 'left'},
                            {display : '客户', name : 'custName', width : 100, sortable : true, align : 'left'},
                            {display : '客户类型', name : 'custTypeName', width : 70, sortable : true, align : 'left'},
                            {display : '签订日期', name : 'contractDate', width : 70, sortable : true, align : 'left'},
                            {display : '创建时间', name : 'createTime', width : 70, sortable : true, align : 'left'},
                            {display : '创建用户', name : 'createUser', width : 70, sortable : true, align : 'left'}
                        ],

                        searchitems : [
                            {display : '委托书编号', name : 'contractNo'},
                            {display : '客户sn', name : 'custSn'},
                            {display : '签订日期', name : 'contractDate'},
                            {display : '创建时间', name : 'createTime'},
                            {display : '创建用户', name : 'createUser'}
                        ],
                        usepager : true,
                        title : '保险经纪合同列表',
                        useRp : true,
                        rp : 20,
                        showTableToggleBtn : true,
                        singleSelect : true,
                        width : 842,
                        height : 500,
						sortname : "contractNo",
                        sortorder : "desc",
                        onRowDblclick : function(rowData) {
                            self.location = '/Ins/contract/edit/' + $(rowData).data("sn").toString();
                        }

                    });
                </script>
            </div>
        </div>
    </div>

[#include '../../bottom.ftl']
</div>
</body>
</html>
[/#escape]